package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YushoukBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YushoukService extends BaseService<YushoukBean> {

	YushoukBean getYushoukBeanById(String id) throws Exception;
	
	void removeYushoukBeanById(String id) throws Exception;
	
	void removeYushoukBeanByIds(String ids) throws Exception;
	
	YushoukBean saveYushoukBean(YushoukBean crm) throws Exception;
	
	YushoukBean updateYushoukBean(YushoukBean crm) throws Exception;
	
	Page<YushoukBean>  findYushoukBeanByCond(YushoukBean bean,
			Page<YushoukBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYushoukBeanExt(String sql) throws Exception;

	String findYushoukBeanExtCreate(String tableName) throws Exception;

	String findYushoukBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYushoukBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYushoukBeanExtData(String tableName, String id)
			throws Exception;
}